```html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>API工具集可视化指南</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        html {
            scroll-behavior: smooth;
        }
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            color: #2d3748;
            line-height: 1.6;
        }
        h1, h2, h3, h4, h5, h6 {
            font-family: 'Noto Serif SC', serif;
            font-weight: 600;
            margin-bottom: 1rem;
        }
        .hero {
            background: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
            color: white;
        }
        .tool-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .tool-icon {
            transition: all 0.3s ease;
        }
        .tool-card:hover .tool-icon {
            transform: scale(1.1);
        }
        .category-tab {
            transition: all 0.3s ease;
        }
        .category-tab.active {
            background-color: #4f46e5;
            color: white;
        }
        .tool-highlight {
            position: relative;
        }
        .tool-highlight::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg, #4f46e5, #8b5cf6);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }
        .tool-highlight:hover::after {
            transform: scaleX(1);
        }
    </style>
</head>
<body class="antialiased bg-gray-50">
    <!-- Hero Section -->
    <section class="hero py-20 px-4 sm:px-6 lg:px-8">
        <div class="max-w-5xl mx-auto text-center">
            <h1 class="text-4xl md:text-6xl font-bold mb-6 animate-fade-in">API工具集可视化指南</h1>
            <p class="text-xl md:text-2xl opacity-90 mb-8 max-w-3xl mx-auto">
                探索强大的开发工具集合，提升您的工作流程效率
            </p>
            <div class="flex justify-center space-x-4">
                <a href="#tools-overview" class="px-6 py-3 bg-white text-indigo-600 rounded-full font-medium hover:bg-gray-100 transition duration-300">
                    开始探索 <i class="fas fa-arrow-down ml-2"></i>
                </a>
            </div>
        </div>
    </section>

    <!-- Tools Overview -->
    <section id="tools-overview" class="py-16 px-4 sm:px-6 lg:px-8">
        <div class="max-w-6xl mx-auto">
            <div class="text-center mb-16">
                <h2 class="text-3xl md:text-4xl font-bold mb-4">工具概览</h2>
                <p class="text-gray-600 max-w-3xl mx-auto">
                    我们的API工具集涵盖了从浏览器预览到代码搜索的广泛功能，帮助开发者高效完成各种任务。
                </p>
            </div>

            <!-- Category Tabs -->
            <div class="flex overflow-x-auto pb-2 mb-8 space-x-2">
                <button class="category-tab px-4 py-2 rounded-full bg-gray-200 text-gray-800 font-medium whitespace-nowrap active">
                    全部工具
                </button>
                <button class="category-tab px-4 py-2 rounded-full bg-gray-200 text-gray-800 font-medium whitespace-nowrap">
                    浏览器相关
                </button>
                <button class="category-tab px-4 py-2 rounded-full bg-gray-200 text-gray-800 font-medium whitespace-nowrap">
                    文件操作
                </button>
                <button class="category-tab px-4 py-2 rounded-full bg-gray-200 text-gray-800 font-medium whitespace-nowrap">
                    部署工具
                </button>
                <button class="category-tab px-4 py-2 rounded-full bg-gray-200 text-gray-800 font-medium whitespace-nowrap">
                    搜索功能
                </button>
            </div>

            <!-- Tool Cards Grid -->
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
                <!-- Browser Preview -->
                <div class="tool-card bg-white rounded-xl shadow-md overflow-hidden transition duration-300">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="tool-icon bg-indigo-100 text-indigo-600 p-3 rounded-lg mr-4">
                                <i class="fas fa-window-maximize text-xl"></i>
                            </div>
                            <h3 class="text-xl font-semibold tool-highlight">浏览器预览</h3>
                        </div>
                        <p class="text-gray-600 mb-4">
                            为Web服务器提供浏览器预览功能，用户可以像正常使用Web服务器一样与之交互。
                        </p>
                        <div class="flex flex-wrap gap-2">
                            <span class="px-2 py-1 bg-gray-100 text-gray-800 text-sm rounded-full">Name: string</span>
                            <span class="px-2 py-1 bg-gray-100 text-gray-800 text-sm rounded-full">Url: string</span>
                        </div>
                    </div>
                </div>

                <!-- Deploy Web App -->
                <div class="tool-card bg-white rounded-xl shadow-md overflow-hidden transition duration-300">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="tool-icon bg-green-100 text-green-600 p-3 rounded-lg mr-4">
                                <i class="fas fa-rocket text-xl"></i>
                            </div>
                            <h3 class="text-xl font-semibold tool-highlight">部署Web应用</h3>
                        </div>
                        <p class="text-gray-600 mb-4">
                            将JavaScript Web应用程序部署到Netlify等部署提供商。只需源代码文件，无需构建。
                        </p>
                        <div class="flex flex-wrap gap-2">
                            <span class="px-2 py-1 bg-gray-100 text-gray-800 text-sm rounded-full">Framework: string</span>
                            <span class="px-2 py-1 bg-gray-100 text-gray-800 text-sm rounded-full">ProjectPath: string</span>
                        </div>
                    </div>
                </div>

                <!-- Codebase Search -->
                <div class="tool-card bg-white rounded-xl shadow-md overflow-hidden transition duration-300">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="tool-icon bg-purple-100 text-purple-600 p-3 rounded-lg mr-4">
                                <i class="fas fa-search text-xl"></i>
                            </div>
                            <h3 class="text-xl font-semibold tool-highlight">代码库搜索</h3>
                        </div>
                        <p class="text-gray-600 mb-4">
                            从代码库中查找与搜索查询最相关的代码片段。对于更精确的搜索查询效果最佳。
                        </p>
                        <div class="flex flex-wrap gap-2">
                            <span class="px-2 py-1 bg-gray-100 text-gray-800 text-sm rounded-full">Query: string</span>
                            <span class="px-2 py-1 bg-gray-100 text-gray-800 text-sm rounded-full">TargetDirectories: array</span>
                        </div>
                    </div>
                </div>

                <!-- Grep Search -->
                <div class="tool-card bg-white rounded-xl shadow-md overflow-hidden transition duration-300">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="tool-icon bg-blue-100 text-blue-600 p-3 rounded-lg mr-4">
                                <i class="fas fa-code text-xl"></i>
                            </div>
                            <h3 class="text-xl font-semibold tool-highlight">Grep搜索</h3>
                        </div>
                        <p class="text-gray-600 mb-4">
                            使用ripgrep在文件或目录中查找精确的模式匹配。返回JSON格式的结果。
                        </p>
                        <div class="flex flex-wrap gap-2">
                            <span class="px-2 py-1 bg-gray-100 text-gray-800 text-sm rounded-full">Query: string</span>
                            <span class="px-2 py-1 bg-gray-100 text-gray-800 text-sm rounded-full">SearchPath: string</span>
                        </div>
                    </div>
                </div>

                <!-- Replace File Content -->
                <div class="tool-card bg-white rounded-xl shadow-md overflow-hidden transition duration-300">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="tool-icon bg-yellow-100 text-yellow-600 p-3 rounded-lg mr-4">
                                <i class="fas fa-edit text-xl"></i>
                            </div>
                            <h3 class="text-xl font-semibold tool-highlight">替换文件内容</h3>
                        </div>
                        <p class="text-gray-600 mb-4">
                            编辑现有文件内容。可以指定多个替换块来修改非相邻的代码行。
                        </p>
                        <div class="flex flex-wrap gap-2">
                            <span class="px-2 py-1 bg-gray-100 text-gray-800 text-sm rounded-full">TargetFile: string</span>
                            <span class="px-2 py-1 bg-gray-100 text-gray-800 text-sm rounded-full">ReplacementChunks: array</span>
                        </div>
                    </div>
                </div>

                <!-- Run Command -->
                <div class="tool-card bg-white rounded-xl shadow-md overflow-hidden transition duration-300">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="tool-icon bg-red-100 text-red-600 p-3 rounded-lg mr-4">
                                <i class="fas fa-terminal text-xl"></i>
                            </div>
                            <h3 class="text-xl font-semibold tool-highlight">运行命令</h3>
                        </div>
                        <p class="text-gray-600 mb-4">
                            代表用户提议运行命令。操作系统: windows。Shell: powershell。
                        </p>
                        <div class="flex flex-wrap gap-2">
                            <span class="px-2 py-1 bg-gray-100 text-gray-800 text-sm rounded-full">CommandLine: string</span>
                            <span class="px-2 py-1 bg-gray-100 text-gray-800 text-sm rounded-full">Blocking: boolean</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Tools Relationship -->
    <section class="py-16 px-4 sm:px-6 lg:px-8 bg-gray-100">
        <div class="max-w-6xl mx-auto">
            <div class="text-center mb-16">
                <h2 class="text-3xl md:text-4xl font-bold mb-4">工具关系图谱</h2>
                <p class="text-gray-600 max-w-3xl mx-auto">
                    了解不同工具如何协同工作，优化您的工作流程
                </p>
            </div>
            
            <div class="mermaid">
                graph TD
                    A[浏览器预览] -->|捕获| B[控制台日志]
                    A -->|捕获| C[屏幕截图]
                    D[部署Web应用] -->|检查| E[部署状态]
                    F[代码库搜索] -->|查看| G[代码项]
                    H[Grep搜索] -->|查看| G
                    I[替换文件内容] --> J[写入文件]
                    K[运行命令] -->|检查| L[命令状态]
                    M[文件搜索] --> N[目录列表]
                    O[Web搜索] --> P[URL内容]
            </div>
        </div>
    </section>

    <!-- Tools Details -->
    <section class="py-16 px-4 sm:px-6 lg:px-8">
        <div class="max-w-6xl mx-auto">
            <div class="text-center mb-16">
                <h2 class="text-3xl md:text-4xl font-bold mb-4">工具详细说明</h2>
                <p class="text-gray-600 max-w-3xl mx-auto">
                    深入了解每个工具的功能和使用方法
                </p>
            </div>

            <div class="space-y-12">
                <!-- Browser Preview -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6 md:p-8">
                        <div class="flex items-start">
                            <div class="bg-indigo-100 text-indigo-600 p-3 rounded-lg mr-4">
                                <i class="fas fa-window-maximize text-xl"></i>
                            </div>
                            <div>
                                <h3 class="text-2xl font-semibold mb-2">浏览器预览 (browser_preview)</h3>
                                <p class="text-gray-600 mb-4">
                                    为Web服务器提供浏览器预览功能，允许用户与Web服务器正常交互，同时向Cascade提供控制台日志和其他信息。
                                </p>
                                <div class="bg-gray-50 p-4 rounded-lg mb-4">
                                    <h4 class="font-medium text-gray-800 mb-2">参数说明</h4>
                                    <ul class="space-y-2">
                                        <li class="flex">
                                            <span class="font-medium text-gray-700 w-32 flex-shrink-0">Name</span>
                                            <span class="text-gray-600">3-5个单词的简短名称，标题格式(如'Personal Website')</span>
                                        </li>
                                        <li class="flex">
                                            <span class="font-medium text-gray-700 w-32 flex-shrink-0">Url</span>
                                            <span class="text-gray-600">目标Web服务器的URL，包含协议(如http://)、域名(如localhost)和端口(如:8080)，但不包含路径</span>
                                        </li>
                                    </ul>
                                </div>
                                <div class="bg-blue-50 p-4 rounded-lg border-l-4 border-blue-500">
                                    <h4 class="font-medium text-blue-800 mb-2">注意事项</h4>
                                    <p class="text-blue-700">
                                        此工具调用不会自动为用户打开浏览器预览，他们必须点击提供的按钮才能在浏览器中打开。
                                    </p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Deploy Web App -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6 md:p-8">
                        <div class="flex items-start">
                            <div class="bg-green-100 text-green-600 p-3 rounded-lg mr-4">
                                <i class="fas fa-rocket text-xl"></i>
                            </div>
                            <div>
                                <h3 class="text-2xl font-semibold mb-2">部署Web应用 (deploy_web_app)</h3>
                                <p class="text-gray-600 mb-4">
                                    将JavaScript Web应用程序部署到Netlify等部署提供商。只需源代码文件，无需构建。
                                </p>
                                <div class="bg-gray-50 p-4 rounded-lg mb-4">
                                    <h4 class="font-medium text-gray-800 mb-2">参数说明</h4>
                                    <ul class="space-y-2">
                                        <li class="flex">
                                            <span class="font-medium text-gray-700 w-32 flex-shrink-0">Framework</span>
                                            <span class="text-gray-600">Web应用程序的框架(如nextjs, create-react-app, svelte等)</span>
                                        </li>
                                        <li class="flex">
                                            <span class="font-medium text-gray-700 w-32 flex-shrink-0">ProjectId</span>
                                            <span class="text-gray-600">部署配置文件中存在的Web应用程序的项目ID。对于新站点为空</span>
                                        </li>
                                        <li class="flex">
                                            <span class="font-medium text-gray-700 w-32 flex-shrink-0">ProjectPath</span>
                                            <span class="text-gray-600">Web应用程序的完整绝对项目路径</span>
                                        </li>
                                        <li class="flex">
                                            <span class="font-medium text-gray-700 w-32 flex-shrink-0">Subdomain</span>
                                            <span class="text-gray-600">URL中使用的子域名或项目名称。对于现有站点为空</span>
                                        </li>
                                    </ul>
                                </div>
                                <div class="bg-blue-50 p-4 rounded-lg border-l-4 border-blue-500">
                                    <h4 class="font-medium text-blue-800 mb-2">注意事项</h4>
                                    <p class="text-blue-700">
                                        在尝试部署之前，确保先运行read_deployment_config工具，并创建所有缺失的文件。
                                    </p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Codebase Search -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6 md:p-8">
                        <div class="flex items-start">
                            <div class="bg-purple-100 text-purple-600 p-3 rounded-lg mr-4">
                                <i class="fas fa-search text-xl"></i>
                            </div>
                            <div>
                                <h3 class="text-2xl font-semibold mb-2">代码库搜索 (codebase_search)</h3>
                                <p class="text-gray-600 mb-4">
                                    从代码库中查找与搜索查询最相关的代码片段。对于更精确的搜索查询效果最佳。
                                </p>
                                <div class="bg-gray-50 p-4 rounded-lg mb-4">
                                    <h4 class="font-medium text-gray-800 mb-2">参数说明</h4>
                                    <ul class="space-y-2">
                                        <li class="flex">
                                            <span class="font-medium text-gray-700 w-32 flex-shrink-0">Query</span>
                                            <span class="text-gray-600">搜索查询</span>
                                        </li>
                                        <li class="flex">
                                            <span class="font-medium text-gray-700 w-32 flex-shrink-0">TargetDirectories</span>
                                            <span class="text-gray-600">要搜索的目录的绝对路径列表</span>
                                        </li>
                                    </ul>
                                </div>
                                <div class="bg-blue-50 p-4 rounded-lg border-l-4 border-blue-500">
                                    <h4 class="font-medium text-blue-800 mb-2">注意事项</h4>
                                    <p class="text-blue-700">
                                        如果尝试搜索超过500个文件，搜索结果的质量会大幅下降。只有在真正需要时才搜索大量文件。
                                    </p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <script>
        mermaid.initialize({
            startOnLoad: true,
            theme: 'default',
            flowchart: {
                useMaxWidth: true,
                htmlLabels: true,
                curve: 'basis'
            }
        });

        // Tab切换功能
        document.querySelectorAll('.category-tab').forEach(tab => {
            tab.addEventListener('click', function() {
                document.querySelectorAll('.category-tab').forEach(t => t.classList.remove('active'));
                this.classList.add('active');
                // 这里可以添加筛选逻辑
            });
        });
    </script>
</body>
</html>
```